/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package towerdefense.data;

import java.awt.Image;
import java.awt.image.BufferedImage;
import java.io.File;
import java.util.ArrayList;
import java.util.List;
import javax.imageio.ImageIO;

/**
 *
 * @author Flo
 */
public class WayTile extends Tile {

    private WayTile nextTile;
    private List<Creep> creeplist = new ArrayList<>();//Schmarn
    private int x, y;

    public WayTile(WayTile nextTile, int x, int y) throws Exception {
        super("WayTile", ImageIO.read(new File("img/wood3.png")));
        this.nextTile = nextTile;
        this.x = x;
        this.y = y;
    }

    public void addCreep(Creep c) {
        creeplist.add(c);
    }

    public WayTile getNextTile() {
        return nextTile;
    }

    public int getX() {
        return x;
    }

    public int getY() {
        return y;
    }
}
